//
//  EJSShopCartGoodsCell.h
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/19.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class EJSShoppingCartGoodsModel,EJSShopCartGoodsCell;

@protocol EJSShopCartGoodsCellDelegate<NSObject>

- (void)shopCartGoodsCell:(EJSShopCartGoodsCell *)cell selectGoods:(EJSShoppingCartGoodsModel *)model;
- (void)shopCartGoodsCell:(EJSShopCartGoodsCell *)cell addGoodsNum:(EJSShoppingCartGoodsModel *)model;
- (void)shopCartGoodsCell:(EJSShopCartGoodsCell *)cell substractGoodsNum:(EJSShoppingCartGoodsModel *)model;
- (void)shopCartGoodsCell:(EJSShopCartGoodsCell *)cell deleteGoods:(EJSShoppingCartGoodsModel *)model;



@end



@interface EJSShopCartGoodsCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *goodsImageView;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsSkuId;
@property (weak, nonatomic) IBOutlet UILabel *origenPriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *minimumCountLabel;
@property (weak, nonatomic) IBOutlet UIButton *addButton;
@property (weak, nonatomic) IBOutlet UIButton *lessButton;


@property (weak, nonatomic) id<EJSShopCartGoodsCellDelegate> delegate;

- (void)setShoppingGoodsCartModel:(EJSShoppingCartGoodsModel *)model;

@end
